#include<stdio.h>
#include <stdlib.h> //rand()
int main( )
{
	float a[10];
	int i;
	float max = -1e20, min = 1e20;
	for (i = 0; i <= 9; i++)
	{
		a[i] = rand() % 100;
//		printf("Please input a number:\n");
//		scanf("%f", &a[i]);
	}
	for (i = 0; i <= 9; i++)
		printf("%6.2f\t", a[i]);
	printf("\n");
	
	for (i = 0; i <= 9; i++)
	{
		if (a[i] > max) max = a[i];
		if (a[i] < min) min = a[i];
	}
	printf("max=%6.2f,min=%6.2f\n", max, min);
	for (i = 9; i >= 0; i--)
		printf("%6.2f\t", a[i]);
}

